{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 量化监控
    <span class="c-gray en">&gt;</span> 盈亏记录
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="/quantization/win" title="清空刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
    <!--<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right: 10px"  href="/money/tansfer" title="清空" >清空</a>-->
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            成交时间：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="start" class="input-text Wdate" style="width:120px;" autocomplete="off">
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="end" class="input-text Wdate" style="width:120px;" autocomplete="off">
            <input type="text" class="input-text" style="width:200px" placeholder="用户账号|标签" value="{:input('uid')}" name="uid">
            <span class="select-box" style="width: 120px">
                <select name="type" class="select">
                    <option value="">订单类型</option>
                    <option value="0" {if isset($_GET['type']) && $_GET['type'] == '0'}selected{/if}>做空</option>
                    <option value="1" {if isset($_GET['type']) && $_GET['type'] == '1'}selected{/if}>做多</option>
                </select>
            </span>
            <span class="select-box" style="width: 120px">
                 <select name="transfer_type" class="select">
                    <option value="">系统下单</option>
                    <option value="1" {if isset($_GET['transfer_type']) && $_GET['transfer_type'] == '1'}selected{/if}>限价成交</option>
                     <option value="2" {if isset($_GET['transfer_type']) && $_GET['transfer_type'] == '2'}selected{/if}>市价成交</option>
                </select>
            </span>
            <button type="submit" class="btn btn-success">搜索</button>
        </div>

    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
            总手数:<span style="color: red">{$data['t']}</span> 胜率:<span style="color: red">{$data['w']}</span> 总手续费:<span style="color: red">{$data['fee']}</span> 盈亏:<span style="color: red">{$data['profit']}</span><br>
            <!--{$data['test']}-->
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="10">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="80">订单号</th>
                <th width="100">用户账号</th>
                <th width="100">用户标签</th>
                <th width="50">买卖方向</th>
                <th width="70">下单类型</th>
                <th width="80">成交价格</th>
                <th width="100">止盈止损</th>
                <th width="80">手续费</th>
                <th width="100">平仓盈亏</th>
                <th width="100">成交时间</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.sn}</td>
                <td>{$v.username}</td>

                <td>{$v.umark}</td>
                <td>{if $v.type == 1}
                    做多
                    {else/}
                    做空
                    {/if}</td>
                <td> {switch name=$v.transfer_type}
                    {case value="1"}限价成交{/case}
                    {case value="2"}市价成交{/case}
                    {default /}未挂单 {/switch}</td>
                <td>{$v.trans_price}</td>
                <td>{$v.min_price} - {$v.max_price}</td>
                <td>{$v.fee}</td>
                <td>{$v.profit}</td>
                <td>{:date('Y-m-d H:i:s',$v.trans_time)}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}